<div>
	<div class="meta-section">
		<div class="meta-section-header">
			<h4 class="meta-section-header-title">筛选：</h4>
		</div>
		<div class="meta-section-container">
				<div class="meta-underline-row" ui-view="meta-area-control"></div>
				<div class="meta-underline-row">
						<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6" ui-view="meta-manager-control"></div>
						<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6" ui-view="meta-state-control"></div>
						<div class="clear-float"></div>
				</div>
		</div>
	</div>
	<div class="meta-section">
		<div class="meta-section-header">
				<h4 class="meta-section-header-title">数据：共 {{listCtrl.tableParams.total}} 项进程</h4>
				<div class="meta-section-header-buttons">
						<button class="btn" ng-click="listCtrl.tableParams.showAll()" ng-class="{'btn-info': !listCtrl.tableParams.isShowAll, 'btn-warning': listCtrl.tableParams.isShowAll}">{{listCtrl.tableParams.showAllText}}</button>
				</div>
				<div class="meta-section-header-search" ui-view="meta-search"></div>
		</div>
		<div class="meta-section-container">
			<table class="table table-condensed table-striped table-bordered meta-table">
				<thead>
					<tr>
						<th class="meta-number-11-td">编号</th>
						<th class="meta-bordered-word-4-td">进程状态</th>
						<th class="meta-number-11-td meta-col-demand" ng-show="listCtrl.tableParams.isShowAll">需求编号</th>
						<th class="meta-col-demand">需求名称</th>
						<th class="meta-word-4-td meta-col-demand">提交者<i class="fa fa-arrow-down fa-sort-ctrl" data-sort="demand.publisher.name"></i></th>
						<th class="meta-number-11-td meta-col-demand" ng-show="listCtrl.tableParams.isShowAll">联系电话</th>
						<th class="meta-number-11-td meta-col-tech" ng-show="listCtrl.tableParams.isShowAll">技术编号</th>
						<th class="meta-col-tech">技术名称</th>
						<th class="meta-word-4-td meta-col-tech">提交者<i class="fa fa-arrow-down fa-sort-ctrl" data-sort="technology.publisher.name"></i></th>
						<th class="meta-number-11-td meta-col-tech" ng-show="listCtrl.tableParams.isShowAll">联系电话</th>
						<th class="meta-word-4-td meta-col-process">负责人<i class="fa fa-arrow-down fa-sort-ctrl" data-sort="demand.leader.name"></i></th>
						<th class="meta-number-11-td meta-col-process">联系电话</th>
						<th class="meta-date-td meta-col-process">立项时间<i class="fa fa-arrow-down fa-sort-ctrl" data-sort="created_at"></i></th>
						<th class="meta-date-td meta-col-process">更新时间<i class="fa fa-arrow-down fa-sort-ctrl" data-sort="updated_at"></i></th>
						<th class="meta-icon-1-td">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="element in listCtrl.tableParams.data track by $index">
						<td>{{element.demand.sn==null?'暂无':element.demand.sn}}</td>
						<td>
							<p class="meta-status meta-adjust-status" ng-class="{
					          		'meta-start-status': element.state==null,
					          		'meta-process1-status': element.state=='正在审核',
					          		'meta-process2-status': element.state=='联系沟通',
					          		'meta-process3-status': element.state=='邀请对接',
					          		'meta-process4-status': element.state=='线下对接',
					          		'meta-process5-status': element.state=='提交合同',
					          		'meta-process6-status': element.state=='确认签约',
					          		'meta-ended-status': !(element.causeForCancel==null && element.demandSideProcess.causeForCancel==null && element.technologySideProcess.causeForCancel==null),
					          		}">
								{{(element.causeForCancel==null && element.demandSideProcess.causeForCancel==null && element.technologySideProcess.causeForCancel==null)?(element.state==null?'正在审核':element.state):('进程终止')}}
							</p>
						</td>
						<td class="meta-col-demand" ng-show="listCtrl.tableParams.isShowAll">{{element.demand.sn==null?'暂无':element.demand.sn}}</td>
						<td class="meta-col-demand">{{element.demand.title}}</td>
						<td class="meta-col-demand">{{element.demand.publisher.name}}</td>
						<td class="meta-col-demand" ng-show="listCtrl.tableParams.isShowAll">{{element.demand.contactInfo.phone==null?element.demand.publisher.mobile:element.demand.contactInfo.phone}}</td>
						<td class="meta-col-tech" ng-show="listCtrl.tableParams.isShowAll">{{element.technology.sn==null?'暂无':element.technology.sn}}</td>
						<td class="meta-col-tech">{{element.technology.title}}</td>
						<td class="meta-col-tech">{{element.technology.publisher.name}}</td>
						<td class="meta-col-tech" ng-show="listCtrl.tableParams.isShowAll">{{element.technology.contactInfo.phone==null?element.technology.publisher.mobile:element.technology.contactInfo.phone}}</td>
						<td class="meta-col-process">{{element.demand.leader.name}}</td>
						<td class="meta-col-process">{{element.demand.leader.mobile}}</td>
						<td class="meta-col-process">{{element.createdAt | date:"yyyy-MM-dd" }}</td>
						<td class="meta-col-process">{{element.updatedAt | date:"yyyy-MM-dd" }}</td>
						<td>
							<a target='_blank' ng-show="element.state==null||element.state=='正在审核'" class="fa fa-edit fa-2x fa-blue" ui-sref="meta.permission.project.process.detail.step1({id: element.id})"></a>
							<a target='_blank' ng-show="element.state=='联系沟通'" class="fa fa-edit fa-2x fa-blue" ui-sref="meta.permission.project.process.detail.step2({id: element.id})"></a>
							<a target='_blank' ng-show="element.state=='邀请对接'" class="fa fa-edit fa-2x fa-blue" ui-sref="meta.permission.project.process.detail.step3({id: element.id})"></a>
							<a target='_blank' ng-show="element.state=='线下对接'" class="fa fa-edit fa-2x fa-blue" ui-sref="meta.permission.project.process.detail.step4({id: element.id})"></a>
							<a target='_blank' ng-show="element.state=='提交合同'" class="fa fa-edit fa-2x fa-blue" ui-sref="meta.permission.project.process.detail.step5({id: element.id})"></a>
							<a target='_blank' ng-show="element.state=='确认签约'" class="fa fa-edit fa-2x fa-blue" ui-sref="meta.permission.project.process.detail.step6({id: element.id})"></a>
							<a target='_blank' ng-show="element.state=='已完成'" class="fa fa-edit fa-2x fa-blue" ui-sref="meta.permission.project.process.detail.step6({id: element.id})"></a>
						</td>
					</tr>
				</tbody>
			</table>
			<div class="meta-page" ui-view="page"></div>
		</div>
	</div>
</div>
